/*
 * @Description: 
 * @Version: 2.0
 * @Author: chengxin
 * @Date: 2022-12-15 13:35:55
 * @LastEditors: chengxin
 * @LastEditTime: 2022-12-16 15:36:42
 */
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from "path";//这个path用到了上面安装的@types/node

// https://vitejs.dev/config/
export default ({mode})=> defineConfig({
  plugins: [vue()],
  resolve: {
    alias: {
      '@': path.resolve('src') // @代替src
    }
  },
  base: mode == 'development'?'':"/christmas-tree/",
  outputDir: 'dist/',
  assetsDir: 'static/'
})
